package clientapp;




import java.util.*;

/**
 *
 * @author Randy
 */
public class SAXHHS {
    private Vector afdelingList = new Vector();

    public SAXHHS() {
    }

    public void addAfdeling(SAXAfdeling afdeling){
        this.afdelingList.addElement(afdeling);
    }

    public SAXAfdeling getAfdeling(int index) {
        if (index >= afdelingList.size()) {
            return null;
        }
        return (SAXAfdeling) afdelingList.elementAt(index);
    }

    public SAXAfdeling getLastAfdeling() {
        return this.getAfdeling(this.getAfdelingSize() - 1);
    }

    public int getAfdelingSize() {
        return afdelingList.size();
    }
}
